package hello;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.ApplicationContext;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;

import cn.zero.config.AppConstants;

@SpringBootApplication(scanBasePackages = "cn.zero")
@EnableJpaRepositories(basePackages = "cn.zero.repository")
@EntityScan(basePackages = "cn.zero.model")
public class T1Application {

	public static ApplicationContext CONTEXT;

	public static void main(String[] args) throws Exception {
		CONTEXT = SpringApplication.run(T1Application.class, args);
		init();
	}

	static void init() {
		AppConstants.calculateBalance();
	}

}
